#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QComboBox>
#include <QLabel>
#include <QApplication>
#include <string>
using namespace std;

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private:
    Ui::Widget *ui;
    QLineEdit* editLeft, *editRight;
    QPushButton* btnRes;
    QComboBox* cbx;
    QLabel* labelResult, *labelMessage;

    void init();
private slots:
    void doRes();
};
#endif // WIDGET_H
